#!/usr/bin/python
# coding=utf-8
'''
@Author:    知行  1181411728@qq.com  
@File  :    08PARTIAL_LINK_TEXT.py    
'''


from time import sleep
# 导入webdriver
from selenium import webdriver
from selenium.webdriver.common.by import By

# 示例一个driver对象
driver = webdriver.Chrome()

# 使用driver对象打开商城
driver.get("http://47.92.149.104:100/")

# 定位元素  (定位方法, 参数 )
# ele = driver.find_element(By.PARTIAL_LINK_TEXT, "登")
ele = driver.find_element(By.PARTIAL_LINK_TEXT, "ZK星星")

# 点击
ele.click()

# 延时10秒钟
sleep(10)

# 关闭浏览器
driver.quit()
